package com.rionosoft.demo.common;

import java.util.HashMap;

import android.app.Activity;

public class CommonMenuItem {

	private final String ITEM_KEY_TITLE = "item_title";
	private final String ITEM_KEY_CLAZZ = "item_clazz";
	
	private HashMap<String, Object> mItems = new HashMap<String, Object>();
	
	public CommonMenuItem(String title, Class<? extends Activity> clazz) {
		mItems.put(ITEM_KEY_TITLE, title);
		mItems.put(ITEM_KEY_CLAZZ, clazz);
	}
	
	public String getTitle() {
		return (String) mItems.get(ITEM_KEY_TITLE);
	}
	
	@SuppressWarnings("unchecked")
	public Class<? extends Activity> getClazz() {
		return (Class<? extends Activity>) mItems.get(ITEM_KEY_CLAZZ);
	}
	
}
